// Fig. 24.24: MessageManager.java
// MessageManger is an interface for objects capable of managing
// communications with a message server.
package Client;

public interface MessageManager
{
   // connect to message server and route incoming messages
   // to given MessageListener
   public void connect( MyMessageListener listener );

   // disconnect from message server and stop routing
   // incoming messages to given MessageListener
   public void disconnect( MyMessageListener listener );

   // send message to message server
   public void sendMessage( String from, String message );
} // end interface MessageManager

